<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>背景图平铺方式</title>
    <style>
        div {
            width: 1000px;
            height: 1000px;
            background-color: pink;

            background-image: url(./背景图测试图片.jpg);

            /* 不平铺：盒子左上角显示一张背景图 */
            background-repeat: no-repeat;
            /* background-repeat: repeat; */
            /* background-repeat: repeat-x; */
            /* background-repeat: repeat-y; */
        }
    </style>
</head>
<body>
    <div>div 标签</div>
</body>
</html>